﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using umbraco.BusinessLogic;
using umbraco.cms.businesslogic;
using umbraco.cms.businesslogic.web;

namespace Procure.Web
{
    public class ProcureApplication : umbraco.BusinessLogic.ApplicationBase
    {
        private static ProcureConfiguration configuration = null;
        private static ProcureConfiguration Configuration
        {
            get
            {
                if (configuration == null)
                    configuration = new ProcureConfiguration();
                return configuration;
            }
        }

        public ProcureApplication()
        {
            ProcureConfiguration configuration = Configuration; // populates the static config at app load
                                                                // rather than waiting for first access
        }
    }
}